home *** CD-ROM | disk | FTP | other *** search
/ ADA Programming Guide / ADA Programming Guide.iso / ada_gnu / adainc / a-wticio.ads < prev    next >
Text File  |  1996-01-30  |  3KB  |  72 lines

  1. ------------------------------------------------------------------------------
  2. --                                                                          --
  3. --                         GNAT RUNTIME COMPONENTS                          --
  4. --                                                                          --
  5. --          A D A . W I D E _ T E X T _ I O . C O M P L E X _ I O           --
  6. --                                                                          --
  7. --                                 S p e c                                  --
  8. --                                                                          --
  9. --                            $Revision: 1.5 $                              --
  10. --                                                                          --
  11. --           Copyright (c) 1992,1993,1994 NYU, All Rights Reserved          --
  12. --                                                                          --
  13. -- GNAT is free software;  you can  redistribute it  and/or modify it under --
  14. -- terms of the  GNU General Public License as published  by the Free Soft- --
  15. -- ware  Foundation;  either version 2,  or (at your option) any later ver- --
  16. -- sion.  GNAT is distributed in the hope that it will be useful, but WITH- --
  17. -- OUT ANY WARRANTY;  without even the  implied warranty of MERCHANTABILITY --
  18. -- or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License --
  19. -- for  more details.  You should have  received  a copy of the GNU General --
  20. -- Public License  distributed with GNAT;  see file COPYING.  If not, write --
  21. -- to the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. --
  22. --                                                                          --
  23. ------------------------------------------------------------------------------
  24.  
  25. with Ada.Numerics.Generic_Complex_Types;
  26.  
  27. generic
  28.    with package Complex_Types is new Ada.Numerics.Generic_Complex_Types (<>);
  29.  
  30. package Ada.Wide_Text_IO.Complex_IO is
  31.  
  32.    use Complex_Types;
  33.  
  34.    Default_Fore : Field := 2;
  35.    Default_Aft  : Field := Real'Digits - 1;
  36.    Default_Exp  : Field := 3;
  37.  
  38.    procedure Get
  39.      (File  : in  File_Type;
  40.       Item  : out Complex;
  41.       Width : in  Field := 0);
  42.  
  43.    procedure Get
  44.      (Item  : out Complex;
  45.       Width : in  Field := 0);
  46.  
  47.    procedure Put
  48.      (File : in File_Type;
  49.       Item : in Complex;
  50.       Fore : in Field := Default_Fore;
  51.       Aft  : in Field := Default_Aft;
  52.       Exp  : in Field := Default_Exp);
  53.  
  54.    procedure Put
  55.      (Item : in Complex;
  56.       Fore : in Field := Default_Fore;
  57.       Aft  : in Field := Default_Aft;
  58.       Exp  : in Field := Default_Exp);
  59.  
  60.    procedure Get
  61.      (From : in  Wide_String;
  62.       Item : out Complex;
  63.       Last : out Positive);
  64.  
  65.    procedure Put
  66.      (To   : out Wide_String;
  67.       Item : in  Complex;
  68.       Aft  : in  Field := Default_Aft;
  69.       Exp  : in  Field := Default_Exp);
  70.  
  71. end Ada.Wide_Text_IO.Complex_IO;
  72.